@import "mixins";

/* These Styles Are Particular to the functioning elements in the color picker,
styles related to the page are abstracted into the includes at the top. */
div#excolor_ok {
  margin: 0;
  padding: 0;
  width: 45px;
  height: 15px;
  overflow: hidden;
  float: left;
  cursor: pointer;
  @include border-radius(2px);
  background: #333;
  border: 1px solid #333;
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
  &:hover {
    background: #ccc;
    color: #333;
    text-shadow: #fff 1px 1px 0;
    border: 1px solid #333;
  }
}

div#excolor_close {
  margin:0;
  padding:0;
  width:15px;
  height:15px;
  float:right;
  cursor:pointer;
  background: #333;
  border: 1px solid #333;
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 1.3;
  @include border-radius(2px);
  &:hover {
    background: #ccc;
    color: #333;
    text-shadow: #fff 1px 1px 0;
    border: 1px solid #333;
  }
}

div#excolor_colorpicker_wrapper {
  height: 140px;
  width: 244px;
  margin: 0;
  padding: 10px 9px 10px 10px;
  float: left;
  overflow: hidden;
  background: #fff; /* Old browsers */
  background: -moz-linear-gradient(top, #fff 0%, #ddd 100%); /* FF3.6+ */
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fff), color-stop(100%,#ddd)); /* Chrome,Safari4+ */
  background: -webkit-linear-gradient(top, #fff 0%,#ddd 100%); /* Chrome10+,Safari5.1+ */
  background: -o-linear-gradient(top, #fff 0%,#ddd 100%); /* Opera11.10+ */
  background: -ms-linear-gradient(top, #fff 0%,#ddd 100%); /* IE10+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#dddddd',GradientType=0 ); /* IE6-9 */
  background: linear-gradient(top, #fff 0%,#ddd 100%); /* W3C */
  @include border-radius(0 2px 2px 2px);
}

div#excolor_colorpicker {
  display: none;
  width: 263px;
  height: 160px;
  position: absolute;
  overflow: hidden;
  padding: 0;
  margin: 0;
  border: 1px solid #333;
  @include border-radius(0 3px 3px 3px);
  @include box-shadow(5px, 1);
}

div#excolor_sample_wrapper {
  width: 60px;
  height: 28px;
  float: right;
  background: none;
  margin: 0;
  padding: 0;
  border: 1px solid #333;
  @include border-radius(3px);
}

div#excolor_sample {
  width: 60px;
  height: 28px;
  float: left;
  padding: 0;
  margin: 0;
  @include border-radius(2px);
}

div.excolor_dataitem {
  float: left;
  padding: 3px 0 0 0;
  margin: 0;
  border: none;
  &.first {
    padding: 6px 0 0 0;
  }
  &.last {
    padding: 6px 0;
  }
}

input#excolor_r, input#excolor_g, input#excolor_b, input#excolor_hex {
  line-height: 13px;
  padding: 1px 0;
  margin: 0;
  color: #333;
  border: 1px solid #aaa;
  background: #fff;
  width: 49px;
  font-size: 10px;
  text-align: center;
  @include border-radius(2px);
}

b.label {
  display: inline-block;
  width: 15px;
  text-align: left;
  font-size: 10px;
  font-family: Verdana, Arial, Helvetica, Sans-serif;
  font-weight: bold;
  color: #333;
  line-height: 13px;
}

div#excolor_switcher {
  border: 1px solid #aaa;
  display: none;
  padding: 0;
  margin: 0;
  font-size: 1px;
  line-height: 1px;
  width: 20px;
  height: 12px;
  background: url("../img/transp0.gif") 0 0 no-repeat;
  position: absolute;
  cursor: pointer;
  @include border-radius(2px);
}

div#excolor_slider {
  display: none;
  width: 20px;
  height: 9px;
  position: absolute;
  background: url("../img/slider-arrows.png") 0 0 no-repeat;
  margin: 0;
  padding: 0;
  border: none;
  cursor: default;
}

div#excolor_picker {
  display: none;
  width: 11px;
  height: 11px;
  position: absolute;
  background: url("../img/sb_sel.png") 0 0 no-repeat;
  margin: 0;
  padding: 0;
  border: none;
}

div#excolor_grad_wrap {
  width: 140px;
  height: 140px;
  float: left;
  background: none;
  padding: 0;
  margin: 0;
  border: none;
}

div#excolor_grad {
  width: 132px;
  height: 132px;
  padding: 3px;
  background: #fff;
  margin: 0;
  border: 1px solid #999;
  @include border-radius(2px);
  @include box-shadow(5px, .75)
}